#ifndef SCOREITEM_H
#define SCOREITEM_H

#include <QGraphicsObject>
#include <QTimer>

class ScoreItem : public QGraphicsObject
{
    Q_OBJECT
public:
    ScoreItem(QPixmap* pixmap);
    ~ScoreItem();
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    virtual QRectF boundingRect() const;
    void setNum(int iNum,bool banima = false);
    void showNum(int iNum);
public:
    QVector<int>    m_numarr;
    int             m_num;
    QTimer          m_timer;
    int             m_iincreasNum;
    qreal           m_x;
    QPixmap*        m_pixmap;
public slots:
    void increaseNum();
};

#endif // SCOREITEM_H
